package com.whisper.application.app.web.controller.front;

import com.whisper.application.app.web.service.ISysDictTypeService;
import com.whisper.common.core.controller.BaseController;
import com.whisper.common.core.domain.entity.SysDictData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 数据字典信息
 * 
 * @author whisper
 */
@RestController
@RequestMapping("/dict")
public class DictTypeController extends BaseController
{
    @Autowired
    private ISysDictTypeService dictTypeService;

    @GetMapping("/list")
    public List<SysDictData> list(String dictType)
    {
        return dictTypeService.selectDictDataByType(dictType);
    }
}
